package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.HotelIndent;
import cn.wolfcode.trip.base.domain.UserOrder;
import cn.wolfcode.trip.base.service.IUserIntegralService;
import cn.wolfcode.trip.base.service.IUserOrderService;
import cn.wolfcode.trip.base.util.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/integral")
public class UserIntegralController {
    @Autowired
    private IUserIntegralService integralService;


    /*
     * 根据用户id查询用户积分信息
     * 资源:/integral/{id}
     * 动作:get
     * 参数:
     * */
    @GetMapping("/{id}")
    public Object getProductsById(@PathVariable Long id){
        return integralService.selectByIndentId(id);
    }



}
